package com.api.demo.dto.business.company;

import com.api.demo.dto.business.ApiDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * @description: 商户申请合作DTO
 * @author: yanming
 * @createDate: 2022/12/26 18:19
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class ApplyCooperationDTO extends ApiDTO {


    private static final long serialVersionUID = -3545432938579370109L;
    @ApiModelProperty(value = "社会信用代码", required = true)
    @NotBlank(message = "社会信用代码不能为空")
    private String creditCode;

    @ApiModelProperty(value = "服务商id", required = true)
    @NotNull(message = "服务商id不能为空")
    private Long taxId;

    @ApiModelProperty(value = "大额结算费率", required = true)
    @Min(value = 0, message = "大额结算费率低于或者等于0")
    private BigDecimal maxTaxPrice;

    @ApiModelProperty(value = "小额结算费率", required = true)
    @Min(value = 0, message = "小额结算费率低于或者等于0")
    private BigDecimal minTaxPrice;
}
